package jpa.entitys.synchro.staging;

import java.io.Serializable;

import javax.persistence.*;

import java.math.BigDecimal;
import java.util.Date;


/**
 * The persistent class for the MM_CONV_FACT_INB database table.
 * 
 */
@Entity
@Table(name="MM_CONV_FACT_INB")
@NamedQueries({
    @NamedQuery(name = "MmConvFactInb.findAll", query = " SELECT c FROM MmConvFactInb c "),
    @NamedQuery(name = "MmConvFactInb.findById", query = " SELECT c FROM MmConvFactInb c WHERE c.promisStagingId = :Id "),
    @NamedQuery(name = "MmConvFactInb.findByInstanceNo", query = " SELECT c FROM MmConvFactInb c WHERE c.instanceNo = :instanceNo  And c.issync = 'N' order by c.articleCode,c.promisStagingId asc"),
    @NamedQuery(name = "MmConvFactInb.findByIsSync", query = " SELECT c FROM MmConvFactInb c WHERE c.issync = :issync and c.isactive = :isactive order by c.instanceNo asc")
    })
public class MmConvFactInb extends jpa.entitys.synchro.common.CommonEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="PROMIS_STAGING_ID", unique=true, nullable=false, length=100)
	private String promisStagingId;
	
	@Override public String toString() { return org.apache.commons.lang.builder.ToStringBuilder.reflectionToString(this);}

	@Column(name="ARTICLE_CODE", length=30)
	private String articleCode;

	@Column(name="CREATED_BY", length=30)
	private String createdBy;

	@Column(name="CREATED_ON", length=20)
	private String createdOn;

	@Column(name="DENOMINATOR_CONVERSION", precision=12)
	private BigDecimal denominatorConversion;

	@Column(name="EXT_REF_KEY", length=100)
	private String extRefKey;

	@Column(name="EXT_REF_NO", length=100)
	private String extRefNo;

	@Column(name="INSTANCE_NO", length=100)
	private String instanceNo;

	@Column(name="ISACTIVE", length=1)
	private String isactive;

	@Column(name="ISSYNC", length=1)
	private String issync;

	@Column(name="MASTER_UM", length=30)
	private String masterUm;

	@Column(name="MSG_ACT_RESULT", length=100)
	private String msgActResult;

	@Column(name="MSG_ALT_DESC", length=300)
	private String msgAltDesc;

	@Column(name="MSG_CODE", length=100)
	private String msgCode;

	@Column(name="MSG_DESC", length=300)
	private String msgDesc;

	@Column(name="NUMERATOR_CONVERSION", precision=12)
	private BigDecimal numeratorConversion;

	@Column(name="SYNC_CREATEDBY", length=100)
	private String syncCreatedby;

    @Temporal( TemporalType.TIMESTAMP)
	@Column(name="SYNC_CREATEDON")
	private Date syncCreatedon;

	@Column(name="SYNC_UPDATEDBY", length=100)
	private String syncUpdatedby;

    @Temporal( TemporalType.TIMESTAMP)
	@Column(name="SYNC_UPDATEDON")
	private Date syncUpdatedon;

	@Column(name="UM", length=30)
	private String um;

	@Column(name="UPDATED_BY", length=30)
	private String updatedBy;

	@Column(name="UPDATED_ON", length=20)
	private String updatedOn;
	
	@Column(name="ACTION_HANDLER", length=20)
	private String actionHandle;
	
	@Column(name="UM_DESCRIPTION", length=20)
	private String umDesciption;
	
	@Column(name="MASTER_UM_DESCRIPTION", length=20)
	private String masterUmDescription;
	
	@Column(name="STATUS")
	private String status;
	
	@Column(name="INTERFACE_NO", length=100)
	private String interfaceNo;	
	
    /**
	 * @return the interfaceNo
	 */
	public String getInterfaceNo() {
		return interfaceNo;
	}

	/**
	 * @param interfaceNo the interfaceNo to set
	 */
	public void setInterfaceNo(String interfaceNo) {
		this.interfaceNo = interfaceNo;
	}
	
	/**
	 * @return the status
	 */
	public String getStatus() {
		return status;
	}

	/**
	 * @param status the status to set
	 */
	public void setStatus(String status) {
		this.status = status;
	}
	

    /**
	 * @return the unDesciption
	 */
	public String getUmDesciption() {
		return umDesciption;
	}

	/**
	 * @param unDesciption the unDesciption to set
	 */
	public void setUmDesciption(String umDesciption) {
		this.umDesciption = umDesciption;
	}

	/**
	 * @return the masterUmDescription
	 */
	public String getMasterUmDescription() {
		return masterUmDescription;
	}

	/**
	 * @param masterUmDescription the masterUmDescription to set
	 */
	public void setMasterUmDescription(String masterUmDescription) {
		this.masterUmDescription = masterUmDescription;
	}

	/**
	 * @return the actionHandle
	 */
	public String getActionHandle() {
		return actionHandle;
	}

	/**
	 * @param actionHandle the actionHandle to set
	 */
	public void setActionHandle(String actionHandle) {
		this.actionHandle = actionHandle;
	}

	public MmConvFactInb() {
    }

	public String getPromisStagingId() {
		return this.promisStagingId;
	}

	public void setPromisStagingId(String promisStagingId) {
		this.promisStagingId = promisStagingId;
	}

	public String getArticleCode() {
		return this.articleCode;
	}

	public void setArticleCode(String articleCode) {
		this.articleCode = articleCode;
	}

	public String getCreatedBy() {
		return this.createdBy;
	}

	public void setCreatedBy(String createdBy) {
		this.createdBy = createdBy;
	}

	public String getCreatedOn() {
		return this.createdOn;
	}

	public void setCreatedOn(String createdOn) {
		this.createdOn = createdOn;
	}

	public BigDecimal getDenominatorConversion() {
		return this.denominatorConversion;
	}

	public void setDenominatorConversion(BigDecimal denominatorConversion) {
		this.denominatorConversion = denominatorConversion;
	}

	public String getExtRefKey() {
		return this.extRefKey;
	}

	public void setExtRefKey(String extRefKey) {
		this.extRefKey = extRefKey;
	}

	public String getExtRefNo() {
		return this.extRefNo;
	}

	public void setExtRefNo(String extRefNo) {
		this.extRefNo = extRefNo;
	}

	public String getInstanceNo() {
		return this.instanceNo;
	}

	public void setInstanceNo(String instanceNo) {
		this.instanceNo = instanceNo;
	}

	public String getIsactive() {
		return this.isactive;
	}

	public void setIsactive(String isactive) {
		this.isactive = isactive;
	}

	public String getIssync() {
		return this.issync;
	}

	public void setIssync(String issync) {
		this.issync = issync;
	}

	public String getMasterUm() {
		return this.masterUm;
	}

	public void setMasterUm(String masterUm) {
		this.masterUm = masterUm;
	}

	public String getMsgActResult() {
		return this.msgActResult;
	}

	public void setMsgActResult(String msgActResult) {
		this.msgActResult = msgActResult;
	}

	public String getMsgAltDesc() {
		return this.msgAltDesc;
	}

	public void setMsgAltDesc(String msgAltDesc) {
		this.msgAltDesc = msgAltDesc;
	}

	public String getMsgCode() {
		return this.msgCode;
	}

	public void setMsgCode(String msgCode) {
		this.msgCode = msgCode;
	}

	public String getMsgDesc() {
		return this.msgDesc;
	}

	public void setMsgDesc(String msgDesc) {
		this.msgDesc = msgDesc;
	}

	public BigDecimal getNumeratorConversion() {
		return this.numeratorConversion;
	}

	public void setNumeratorConversion(BigDecimal numeratorConversion) {
		this.numeratorConversion = numeratorConversion;
	}

	public String getSyncCreatedby() {
		return this.syncCreatedby;
	}

	public void setSyncCreatedby(String syncCreatedby) {
		this.syncCreatedby = syncCreatedby;
	}

	public Date getSyncCreatedon() {
		return this.syncCreatedon;
	}

	public void setSyncCreatedon(Date syncCreatedon) {
		this.syncCreatedon = syncCreatedon;
	}

	public String getSyncUpdatedby() {
		return this.syncUpdatedby;
	}

	public void setSyncUpdatedby(String syncUpdatedby) {
		this.syncUpdatedby = syncUpdatedby;
	}

	public Date getSyncUpdatedon() {
		return this.syncUpdatedon;
	}

	public void setSyncUpdatedon(Date syncUpdatedon) {
		this.syncUpdatedon = syncUpdatedon;
	}

	public String getUm() {
		return this.um;
	}

	public void setUm(String um) {
		this.um = um;
	}

	public String getUpdatedBy() {
		return this.updatedBy;
	}

	public void setUpdatedBy(String updatedBy) {
		this.updatedBy = updatedBy;
	}

	public String getUpdatedOn() {
		return this.updatedOn;
	}

	public void setUpdatedOn(String updatedOn) {
		this.updatedOn = updatedOn;
	}

}